Component({
  mixins: [],
  data: {
    isShowAgreement: false,
    agreementType: 1,
  },
  props: {
    rootImagePath: ''
  },
  didMount() {
    // this.$page.keepAgreementParent = this
  },
  didUpdate() {},
  didUnmount() {},
  methods: {
    showAgreementHandler(e) {
      // console.log('showAgreementHandler1',e.target.dataset.attr);
      this.setData({
        agreementType: parseInt(e.target.dataset.attr),
        isShowAgreement: true
      })
    },
    agreementOkHandler() {
      this.setData({
        isShowAgreement: false
      })
    },
    gotoMini() {
      my.navigateToMiniProgram({
        appId: '2021004135681441',
        path: 'pages/keeplq/keeplq',
        success: function (res) {
          console.log('跳转小程序成功', res);
        },
        fail: function (err) {
          console.log('跳转小程序失败', err);
        }
      });
    },
    gotoPage(pageUrl) {
      my.navigateTo({
        url: pageUrl
      })
    },
    telHandler() {
      my.makePhoneCall({
        number: '4008825010',

      });
    }
  },
});